home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / amos / AMOS_0795.lzh / AMOSLIST / 000097_amos-request@svcs1.digex.net_Fri Jul 21 06:56:27 1995.msg < prev    next >
Internet Message Format  |  1995-08-04  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id GAA07077;  for  ; Fri, 21 Jul 1995 06:56:24 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id EAA17413 for amos-out; Fri, 21 Jul 1995 04:29:11 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id EAA17410 for <amos-list@svcs1.digex.net>; Fri, 21 Jul 1995 04:29:10 -0400
  4. Received: from goanna.cs.rmit.edu.au (root@goanna.cs.rmit.EDU.AU [131.170.24.40]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id EAA00869;  for <amos-list@access.digex.net> ; Fri, 21 Jul 1995 04:28:58 -0400
  5. Received: from yallara.cs.rmit.edu.au (s9506574@yallara.cs.rmit.EDU.AU [131.170.24.42]) by goanna.cs.rmit.edu.au (8.6.10/8.6.9) with ESMTP id SAA20884 for <amos-list@access.digex.net>; Fri, 21 Jul 1995 18:28:52 +1000
  6. Received: (from s9506574@localhost) by yallara.cs.rmit.edu.au (8.6.10/8.6.10) id SAA02320 for amos-list@access.digex.net; Fri, 21 Jul 1995 18:28:51 +1000
  7. From: Clarence Bakirtzidis  <s9506574@yallara.cs.rmit.edu.au>
  8. Message-Id: <199507210828.SAA02320@yallara.cs.rmit.edu.au>
  9. Subject: Too many IF's!
  10. To: amos-list@access.digex.net
  11. Date: Fri, 21 Jul 1995 18:28:51 +1000 (EST)
  12. X-Mailer: ELM [version 2.4 PL23]
  13. MIME-Version: 1.0
  14. Content-Type: text/plain; charset=US-ASCII
  15. Content-Transfer-Encoding: 7bit
  16. Content-Length: 1232      
  17. Status: RO
  18. X-Status: 
  19.  
  20.     I was just wondering if it is typical for a main loop of a game to
  21. consist of MANY "if" statements?  I am worried my main loop might become slow,
  22. but it is the only way I can think of to achieve what I want.  I chose to
  23. do everything the hard way, without AMAL.  But now I am thinking of using AMAL
  24. to control some parts of the game, because it is too hard to do it another
  25. way without using a LOT of IF statements and flags to keep track of
  26. things in the game.  Any suggestions?  When people make commercial games, do
  27. they use techniques similar to AMAL, i.e. run things under interrupt, or do
  28. they do it by using flags and counters to carry out something (like an
  29. explosion) which would last for several game loops?  Because keeping track
  30. of say two players, several baddies, bullets, explosions and other things
  31. without running them under interrupt seems like a very daunting task to me...
  32.  
  33.                                   - Clarence B.
  34. -- 
  35. +----------------------+-------------------------------------------------+
  36. | Clarence Bakirtzidis | Email -> s9506574@minyos.xx.rmit.edu.au         |
  37. | RMIT Uni. Melbourne  |  WWW  -> http://minyos.xx.rmit.edu.au/~s9506574 |
  38. +----------------------+-------------------------------------------------+